package com.pinda.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.pinda.auth.entity.PdAuthResource;
import com.pinda.authorization.entity.Resources;
import com.pinda.mapper.ResourcesMapper;
import com.pinda.service.ResourcesService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * <p>
 * 资源 服务实现类
 * </p>
 *
 * @author 黄杰
 * @since 2023-06-13
 */
@Service
public class ResourcesServiceImpl extends ServiceImpl<ResourcesMapper, Resources> implements ResourcesService {

    @Resource
    private ResourcesMapper pdAuthResourceMapper;
    @Override
    public List<String> findUserByIdResourceService(String userId) {
        return this.pdAuthResourceMapper.findUserByIdResource(userId);
    }

    @Override
    public List<Resources> findUserByIdResourceAllService(String userId) {
        return this.pdAuthResourceMapper.findUserByIdResourceAll(userId);
    }
}
